home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / octa209s.zip / octave-2.09 / src / utils.h < prev    next >
C/C++ Source or Header  |  1996-10-30  |  2KB  |  70 lines

  1. /*
  2.  
  3. Copyright (C) 1996 John W. Eaton
  4.  
  5. This file is part of Octave.
  6.  
  7. Octave is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2, or (at your option) any
  10. later version.
  11.  
  12. Octave is distributed in the hope that it will be useful, but WITHOUT
  13. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15. for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Octave; see the file COPYING.  If not, write to the Free
  19. Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. */
  22.  
  23. #if !defined (octave_utils_h)
  24. #define octave_utils_h 1
  25.  
  26. class istream;
  27. class ostrstream;
  28.  
  29. #include <string>
  30.  
  31. #include "lo-utils.h"
  32.  
  33. class octave_value_list;
  34. class string_vector;
  35.  
  36. extern char *strsave (const char *);
  37.  
  38. extern string search_path_for_file (const string&, const string&);
  39. extern string file_in_path (const string&, const string&);
  40. extern string fcn_file_in_path (const string&);
  41. extern string oct_file_in_path (const string&);
  42.  
  43. extern "C" void jump_to_top_level (void) GCC_ATTR_NORETURN;
  44.  
  45. extern int almost_match (const string& std, const string& s,
  46.              int min_match_len = 1, int case_sens = 1);
  47.  
  48. extern int
  49. keyword_almost_match (const char **std, int *min_len,
  50.               const string& s, int min_toks_to_match,
  51.               int max_toks);
  52.  
  53. extern int empty_arg (const char *name, int nr, int nc);
  54.  
  55. extern const char *undo_string_escape (char c);
  56.  
  57. extern string undo_string_escapes (const string& s);
  58.  
  59. extern void oct_putenv (const char *, const char *);
  60.  
  61. extern int check_preference (const string& var);
  62.  
  63. #endif
  64.  
  65. /*
  66. ;;; Local Variables: ***
  67. ;;; mode: C++ ***
  68. ;;; End: ***
  69. */
  70.